<template>
	<div class="tab">
		<tab-icon v-for="(item,index) in tabData" :key="index" :iconText="item.iconText" :path="item.path">
			{{item.tabText}}
		</tab-icon>
	</div>
</template>

<script>
import {ref} from 'vue'
import TabIcon from './Icon'
import tabData from '@/data/tab'
export default {
	setup () {
		

		return {
			tabData:ref(tabData)
		}
	},
	components:{
		TabIcon
	}
}
</script>

<style lang="less" scoped>
	.tab{
		display: flex;
		justify-content: space-around;
		align-items: center;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 99;
		width: 100%;
		height: .44rem;
		border-top:1px solid #ddd;
		background: #fff;
	}
</style>